//test
import Vue from 'vue';

export const getCount = state => {
    return state.count
}

export const getToken = state => {

    let storage = window.sessionStorage;
    if ((storage.token || '') != '') {
        state.token = storage.token
        return state.token;
    } else {
        storage.token= state.token
        return state.token;
    }
}


export const getMenuList = state => {
    
    let storage = window.sessionStorage;
    if ((storage.menuList || '') != '') {
        state.menuList = storage.menuList
        return state.menuList;
    } else {
        storage.menuList= state.menuList
        return state.menuList;
    }
}


